﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Views/Shared/Default.Master" CodeBehind="List.aspx.cs" Inherits="AcademicPlanner.Presentation.Views.Programs.List" %>

<%@ Import Namespace="AcademicPlanner.Framework.Helpers" %>
<%@ Import Namespace="AcademicPlanner.Presentation.Views.Shared" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headplace" runat="server"></asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="pageheadingplace" runat="server">
	<%= Html.Encode(pageHeading) %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="contentplace" runat="server">
	<h2 class="top-actions right-aligned">
		<%= Html.ActionLink(Html.Encode(Tr("Create Program")), 
			"ProgramForm", "Controls", 
			new { pScenario = ProgramFormScenario.CREATE, pProgramId = 0, pPlanId = Model.AcademicPlanId }, 
			new { onclick = "return gListProgramsPageCtrl.handleCreateProgram(event, this)" }) %>
	</h2>
	<%= WidgetHelper.PageTipBlock(pageTip) %>
	<% Html.RenderPartial("ProgramsControl", ViewProgramsModel); %>
	<%= WidgetHelper.DialogBlock("saveProgramDialog", Html.Encode(Tr("Enter program information")), "") %>
	<script type="text/javascript">
		gDomReadyQueue.push('gListProgramsPageCtrl.init();');
		gListProgramsPageCtrl.buttonTexts.submit = '<%= SecurityHelper.Escape(Tr("Save")) %>';
		gListProgramsPageCtrl.buttonTexts.cancel = '<%= SecurityHelper.Escape(Tr("Cancel")) %>';
	</script>
</asp:Content>
